<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .box{
            width: 300px;
            height: 400px;
            border: 6px solid #eee;
            margin: 100px auto;
            display: grid;
            grid-template-columns: repeat(3,100px);
            grid-template-rows: repeat(4,100px);
            
        }
        .box1{
            grid-row-start: 1;
            grid-row-end: 3;
            grid-column-start: 2;
            grid-column-end:4 ;
        }
        .box>div{
            background-color: aqua;
            border: 1px dashed red;
        }
        /* 简写 */
        .box2{
            grid-row: 2/4;
            grid-column: 1/2;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1">1</div>
        <div class="box2">2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <!-- <div>9</div> -->
        <!-- <div>10</div>
        <div>11</div>
        <div>12</div> -->
    </div>
</body>
</html>